package org.fly.jingwei.service;

import net.sf.json.JSONObject;
import org.fly.jingwei.bean.PageForBean;
import org.fly.jingwei.entity.JobTimeSchedulerEntity;
import org.quartz.SchedulerException;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author leo
 * @date 2017/3/8
 */
public interface SchedulerService {
    PageForBean<JobTimeSchedulerEntity> getAllSchedulerByPage(int start, int limit, Integer typeId, String slaves, String jobName, String userGroupName);

    void deleteScheduler(String[] taskIdArray) throws Exception;

    JSONObject beforeUpdate(String taskId);

    boolean updateSchedulerJob(Map<String, Object> params, HttpServletRequest request) throws Exception;

    List<JobTimeSchedulerEntity> getSchedulerJobByLogin(String userGroupName);

}
